﻿<UserControl x:Class="SSRSTestGenerator.UserControls.LoadReport"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"  Loaded="UserControl_Loaded"
             d:DesignHeight="300" d:DesignWidth="450">
    <Grid>

        <Border Margin="5" BorderBrush="Blue" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.03">
                    <LinearGradientBrush.GradientStops>
                        <GradientStop Offset="0" Color="LightBlue" />
                        <GradientStop Offset="0.25" Color="White" />
                        <GradientStop Offset="0.4" Color="WhiteSmoke" />
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Border.Background>

            <DockPanel>
                <StackPanel Width="Auto" Height="auto" DockPanel.Dock="Top" Orientation="Vertical" VerticalAlignment="Top">
                    <StackPanel Margin="5">
                        <Border BorderBrush="White" BorderThickness="4" Width="auto" Height="auto">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="auto"></RowDefinition>
                                    <RowDefinition Height="auto"></RowDefinition>
                                </Grid.RowDefinitions>

                                <StackPanel Orientation="Vertical">
                                    <Label Name="lblParameters" Grid.Row="0" Grid.Column="0">Report Parameters:</Label>
                                    <DataGrid Name="grdParameters" BeginningEdit="grdParameters_BeginningEdit" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.Row="1" Grid.Column="1"  Margin="5" MinHeight="250" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False">
                                        <DataGrid.Columns>
                                            <DataGridTextColumn Header="Report Parameter Name" Binding="{Binding Path=Name}" IsReadOnly="True" Width="200"/>
                                            <DataGridTextColumn Header="Report Parameter Value" Binding="{Binding Path=Value}" IsReadOnly="False" Width="200"/>
                                        </DataGrid.Columns>
                                    </DataGrid>
                                </StackPanel>
                            </Grid>
                        </Border>
                    </StackPanel>

                </StackPanel>
            </DockPanel>
        </Border>
    </Grid>
</UserControl>
